package com.sunwhite.algorithm.question;

import java.util.Scanner;

public class Main1 {
        public static void main(String[] args) {
            Scanner scanner = new Scanner(System.in);
            System.out.println("请输入一串字符:");
            String strIn = scanner.nextLine();
            System.out.println("请输入需要查找的字符：");
            String strSearch = scanner.next();
            String[] split = strIn.split(strSearch);
            System.out.println(split.length-1);
        }
}
